package com.youngwang.equal;

/**
 * 基础知识测试
 * @author youngwang
 *         Date: 2016/10/21
 */
public class IntegerTest {

    public static void main(String[] args){

        Integer integer = -128;
        Integer integer1 = -128;
        System.out.println(integer == integer1);

        Integer integer2 = 300;
        Integer integer3 = 300;
        System.out.println(integer2 == integer3);

        Long l1 = 1L;
        Long l2 = 1L;
        System.out.println(l1 == l2);

        Double d1 = 1.0;
        Double d2 = 1.0;
        System.out.println(d1 == d2);
    }
}
